package com.ormlite.activity.add;

import android.os.Bundle;
import android.widget.EditText;

import com.ormlite.activity.tool.GuiUtils;
import com.ormlite.activity.tool.button.BackButton;
import com.ormlite.activity.tool.button.movie.AddMovieButton;
import com.ormlite.app.R;

public final class AddMovieActivity extends AbstractAddActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_add_movie);

		EditText title = (EditText) findViewById(R.id.titleEdit);
		EditText year = (EditText) findViewById(R.id.yearEdit);
		EditText director = (EditText) findViewById(R.id.directorEdit);
		EditText rate = (EditText) findViewById(R.id.rateEdit);

		GuiUtils.hookButton(this, R.id.buttonBackAddMovie, new BackButton(this));
		GuiUtils.hookButton(this, R.id.buttonAddMovie, new AddMovieButton(this, title, director, year, rate));
	}
}
